package jdl.databaseObjects;

public class Database extends DbObject {
	private TableCollection tableCollection = new TableCollection();

	public Database(String name) {
		super(name);
	}

	public TableCollection getTableCollection() {
		return tableCollection;
	}

	public void addTable(Table table) throws ObjectAlreadyExistsException {
		tableCollection.add(table);
	}
}
